<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理中心</title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
</head>

<body>
    <div id="main">
        <div id="navigation">当前位置：<a href="<?php echo $this->projectUrl(array('controller'=>'partner', 'action'=>'index'));?>">商家列表 </a>&gt;
   <a href="<?php echo $this->vars['backUrl'] ? $this->vars['backUrl'] : $this->projectUrl(array('action'=>'index'));?>">产品列表</a> &gt;     
        <b>产品更新</b></span></div>
        <div id="body">
            <div id="edit">
                <form id="editForm" name="editForm" method="post" action="<?php echo $this->projectUrl();?>">
                    <table class="table">
                        <tr>
                            <td width="32%">商家名称：</td>
                            <td width="68%">
                                    <?php foreach ($this->partnerRow as $k=>$v) {
                                    	if ($v['code'] == $this->partnerProdcutRow['partnerCode']) {
                                    		echo '<input name="partnerCode" type="text" class="input" id="partnerCode" value="' .$v['name'] . '" size="30" style="width:300px;" readonly>';
                                    	}
                                    }?>                             </td>
                        </tr>
                        <tr>
                            <td>产品编号：</td>
                            <td>
                            <input name="code" type="text" class="input" id="code" value="<?php echo $this->partnerProdcutRow['code'];?>" size="30" style="width:300px;" readonly ></td>
                        </tr>
                        <tr>
                            <td>名称：</td>
                            <td>
                            <input name="name" type="text" class="input" id="name" value="<?php echo $this->partnerProdcutRow['name'];?>" size="30" style="width:300px;"></td>
                        </tr>
                        <tr>
                          <td>运营经理：</td>
                          <td><input name="manager" type="text" class="input" id="manager" value="<?php echo $this->partnerProductManager['manager'];?>" size="60" style="width:300px;" />
                            用逗号（半角）分隔，例如：user1,user2</td>
                        </tr>
                        <tr>
                          <td>运营专员：</td>
                          <td><input name="comm" type="text" class="input" id="comm" value="<?php echo $this->partnerProductManager['comm'];?>" size="60" style="width:300px;" />
                            用逗号（半角）分隔，例如：user1,user2</td>
                        </tr>
                        <tr class="dataLine">
                          <td>产品类型：</td>
                          <td><label>
                          <input type="radio" name="type" id="radio3" value="1" 
                          <?php if ($this->currVars['type'] == '1'):?>
                          checked="checked"
                          <?php endif;?>
                           />
                            客户端版
                          </label>
                            &nbsp;&nbsp;
                            <label>
                            <input type="radio" name="type" id="radio4" value="2" 
                          <?php if ($this->currVars['type'] == '2'):?>
                          checked="checked"
                          <?php endif;?>
                          />
                            WAP版
                            </label></td>
                        </tr>
                        <tr class="dataLine">
                          <td>是否发送日报：</td>
                          <td><label><input type="radio" name="isSendReport" id="radio" value="1" 
                          <?php if ($this->currVars['isSendReport'] == '1'):?>
                          checked="checked"
                          <?php endif;?>
                           />
                            是</label>&nbsp;&nbsp;
                            <label><input type="radio" name="isSendReport" id="radio2" value="0" 
                          <?php if ($this->currVars['isSendReport'] == '0'):?>
                          checked="checked"
                          <?php endif;?>
                          />
                            否</label></td>
                        </tr>
                        <tr class="dataLine">
                          <td>日报主发地址：</td>
                          <td><input name="reportMail" type="text" class="input" id="reportMail" value="<?php echo $this->currVars['reportMail'];?>" size="60" style="width:300px;" />
                            仅填写一个主发地址，例如：
                            user1@yek.me</td>
                        </tr>
                        <tr class="dataLine">
                          <td>日报抄送地址：</td>
                          <td><textarea name="sendReportMail" id="sendReportMail" cols="40" rows="5"><?php echo $this->currVars['sendReportMail'];?></textarea>
                          用逗号（半角）分隔，例如：user1@yek.me,user2@yek.me</td>
                        </tr>
                        <tr>
                          <td>是否发送Udid日报：</td>
                          <td><label><input type="radio" name="udidIsSendReport" id="radio" value="1" 
                          <?php if ($this->currVars['udidIsSendReport'] == '1'):?>
                          checked="checked"
                          <?php endif;?>
                           />
                            是</label>&nbsp;&nbsp;
                            <label><input type="radio" name="udidIsSendReport" id="radio2" value="0" 
                          <?php if ($this->currVars['udidIsSendReport'] == '0'):?>
                          checked="checked"
                          <?php endif;?>
                          />
                            否</label></td>
                        </tr>
                        <tr>
                          <td>Udid日报主发地址：</td>
                          <td><input name="udidReportMail" type="text" class="input" id="udidReportMail" value="<?php echo $this->currVars['udidReportMail'];?>" size="60" style="width:300px;" />
仅填写一个主发地址，例如：
                          user1@yek.me</td>
                        </tr>
                        <tr>
                          <td>Udid日报抄送地址：</td>
                          <td><textarea name="udidSendReportMail" id="udidSendReportMail" cols="40" rows="5"><?php echo $this->currVars['udidSendReportMail'];?></textarea>
用逗号（半角）分隔，例如：user1@yek.me,user2@yek.me</td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td>
                            <input type="hidden" name="id" value="<?php echo $this->partnerProdcutRow['id'];?>" />
                            <input type="hidden" name="backUrl" value="<?php echo $this->vars['backUrl'];?>" />
                            <input type="submit" name="button" id="button" value="提交" class="button" /></td>
                        </tr>
                    </table>
              </form>
            </div>
        </div>
</div>
</body>
</html>